package com.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonAppend;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private String id;

    private String orderNo;

    private String createUserId;

    private BigDecimal totalMoney;

    private Integer payType;

    private String qrCode;

    @NotEmpty
    private String onlyCode;

    private Integer status;

    private String shoping;

    private Date payTime;

    private Date startTime;

    private Date endTime;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private Date closeTime;

    private String updateUserId;

    private Date updateTime;

    private Integer deleted;

    private Long orderMoney;

    private Long couponMoney;

    private Date version;

    private List<OrderItem> orderItemList;

}
